﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Collections;
using System.Data;
using OgilvyOne.Model;

namespace OgilvyOne.IDAL
{
    public interface ICmsArticleComments
    {
        /// <summary>
        /// 添加评论
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        int Add(CmsArticleCommentModel model);
        /// <summary>
        /// 取单个评论
        /// </summary>
        /// <param name="commid"></param>
        /// <returns></returns>
        CmsArticleCommentModel GetArticleCommentModel(int commid);
        /// <summary>
        /// 查询评论
        /// </summary>
        /// <param name="q"></param>
        /// <returns></returns>
        DataSet GetCommentList(CmsArticleCommentModel q);
        /// <summary>
        /// 审核评论
        /// </summary>
        /// <param name="commid">评论ID</param>
        /// <param name="auditstate">审核状态 2审核通过 3未通过</param>
        /// <param name="auditusername">审核人</param>
        /// <returns></returns>
        bool Audit(int commid, int auditstate, string auditusername);
        /// <summary>
        /// 发布
        /// </summary>
        /// <param name="commid">评论ID</param>
        /// <param name="state">发布状态 1发布 6撤消发布 0等待审核</param>
        /// <returns></returns>
        bool Pubsh(int commid, int state);
        /// <summary>
        /// 删除
        /// </summary>
        /// <param name="commid"></param>
        /// <returns></returns>
        bool Delete(int commid);
        /// </summary>
        /// <param> 查询多条评论</param>
        /// <returns></returns>
        bool DeleteComments(string CID);
    }

}
